// const appTarget = 'http://api-ipaas.dev.clickpaas.com'; // 开发环境
// const appTarget = 'http://api-ipaas.lab.clickpaas.com'; // 预生产环境
// const appTarget = 'http://api-ipaas.clickpaas.com'; // 生产环境
// const appTarget = 'http://api-ipaas.dev3.clickpaas.com'; // 测试环境
// const appTarget = 'http://api-ipaas.dev3.clickpaas.com'; // 测试环境
const appTarget = 'http://api-ipaas.dev.clickpaas.com'; // 开发环境
// const appTarget = 'http://api-ipaas.lab.clickpaas.com'; // 预生产环境
// const appTarget = 'http://api-ipaas.clickpaas.com'; // 生产环境

export interface IProxy {
  [key: string]: any;
}

export default {
  '/ipaas-console/api/': {
    target: appTarget,
    changeOrigin: true,
  },
  '/ipaas-interface-management/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/cid-cnn-rest/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/ipaas-metadata/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/ipaas-network/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/ipaas-component/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/cid-cnn-runtime-management/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/cid-cnn-runtime-job/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/cid-cnn-runtime-job/mysql': {
    target: appTarget,
    changeOrigin: true,
  },

  '/ipaas-function/api/': {
    target: appTarget,
    changeOrigin: true,
  },

  '/spring-cloud-monitor/api/': {
    target: appTarget,
    changeOrigin: true,
  },
} as IProxy;
